import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MapSDominionServiceHelper } from "./MapSDominionServiceHelper";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionBattlePreview
    
    export  class SDominionBattlePreview
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.mainActId.__write(arg1);
            this.mainDefId.__write(arg1);
            arg1.writeInt(this.actCombat);
            arg1.writeInt(this.defCombat);
            arg1.writeInt(this.x);
            arg1.writeInt(this.y);
            arg1.writeString(this.name);
            MapSDominionServiceHelper.write(arg1, this.assistActIds);
            MapSDominionServiceHelper.write(arg1, this.assistDefIds);
            MapSDominionServiceHelper.write(arg1, this.dominionIds);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.mainActId = new DominionId();
            this.mainActId.__read(arg1);
            this.mainDefId = new DominionId();
            this.mainDefId.__read(arg1);
            this.actCombat = arg1.readInt();
            this.defCombat = arg1.readInt();
            this.x = arg1.readInt();
            this.y = arg1.readInt();
            this.name = arg1.readString();
            this.assistActIds = MapSDominionServiceHelper.read(arg1);
            this.assistDefIds = MapSDominionServiceHelper.read(arg1);
            this.dominionIds = MapSDominionServiceHelper.read(arg1);
            return;
        }

        public /* var */mainActId: DominionId;

        public /* var */mainDefId: DominionId;

        public /* var */actCombat: int;

        public /* var */defCombat: int;

        public /* var */x: int;

        public /* var */y: int;

        public /* var */name: string;

        public /* var */assistActIds: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */assistDefIds: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */dominionIds: Map<any, any> /* flash.utils.Dictionary */;
    }
